@extends('user._layouts.default')

@section('css')
    {{HTML::style('user/css/base.css')}}
@stop

@section('user-main')
<div style="font-size: 25px;">{{{$title or ''}}}<a href="{{URL::to('user/projects/add')}}" class="am-btn am-fr am-btn-xs am-btn-primary">发布软件</a></div>
<hr/>

<table class="am-table am-table-bordered am-table-striped am-table-hover">
    <thead>
        <tr>
            <th>软件名称</th>
            <th>创建时间</th>
            <th>审批状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	@foreach($projects as $project)
        <tr>
            <td>{{$project->name}}</td>
            <td>{{$project->created_at}}</td>
            <td>{{my_get_projects_status($project->status)}}</td>
            <td><a href="{{$project->home_url}}" class="am-btn am-btn-primary am-btn-xs ">查看</a><a href="{{URL::to('user/projects/modify/'.$project->id)}}" class="am-btn am-btn-primary am-btn-xs am-margin-left-sm">修改</a><a href="{{URL::to('user/projects/delete/'.$project->id)}}" class="am-btn am-btn-danger am-btn-xs am-margin-left-sm">删除</a></td>
        </tr>
        @endForeach
    </tbody>
</table>
{{$projects->links('public.pagination')}}
@stop
<!--[if (gte IE 9)|!(IE)]><!-->
@section('js')

@stop
